package com.wzz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.Date;

/**
 * @author by wzz
 * @implNote 2020/11/5 11:01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("答题记录")
@TableName(value = "exam_record")
public class ExamRecord implements Serializable {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键 答题主键的id", example = "1")
    private Integer recordId;

    @ApiModelProperty(value = "答题用户id", example = "1")
    private Integer userId;

    @ApiModelProperty(value = "用户答题中的答案", example = "1")
    private String userAnswers;

    @ApiModelProperty(value = "答题过程中的信用截图", example = "imgUrl")
    private String creditImgUrl;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "答题时间", example = "2020-10-20")
    private Date examTime;

    @ApiModelProperty(value = "答题逻辑得分", example = "69")
    private Integer logicScore;

    @ApiModelProperty(value = "答题的id", example = "1")
    private Integer examId;

    @ApiModelProperty(value = "答题的题目id", example = "1")
    private String questionIds;

    @ApiModelProperty(value = "答题总得分", example = "100")
    private Integer totalScore;

    @ApiModelProperty(value = "答题错题id", example = "1,2,3")
    private String errorQuestionIds;



}
